<meta charset="utf-8">
<title>财务统计</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="description" content="网站描述">
<meta name="keywords" content="">
<meta name="author" content="wangl">
<link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all"/>
<link rel="stylesheet" href="${base}/static/css/main.css" media="all"/>
<link rel="icon" href="http://ow9lg82yy.bkt.clouddn.com/24f5c360-485d-4a6d-9468-2a61c353cf37.ico">
<link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
<link rel="stylesheet" href="//at.alicdn.com/t/font_tnyc012u2rlwstt9.css" media="all">
<link rel="stylesheet" href="/static/css/user.css" media="all">
<link rel="stylesheet" href="/static/zTree/v3/css/zTreeStyle/zTreeStyle.css" type="text/css">


<style>
    .laytable-cell-1-paramname {
        width: 220px;

    }

    .laytable-cell-1-paramname1 {
        width: 230px;
    }

    .laytable-cell-1-n1 {
        width: 100px;

    }

    .laytable-cell-1-n2 {
        width: 150px;

    }

    .tr {
        border: 1px solid #000000;
    }

    .td {
        border: 1px solid #000000;
    }
    .childrenBody .row{ margin: 0; overflow: inherit;}
</style>

</head>
<body class="childrenBody">
<div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalDividends"></span>
                    <cite>股东累计分红</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="monthDividends"></span>
                    <cite>股东本月分红</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="s_withdrawalCashCount"></span>
                    <cite>股东累计提现金额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="s_withdrawalCash"></span>
                    <cite>股东可提现金额</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="s_totalTransfer"></span>
                    <cite>股东转账总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="s_monthTransfer"></span>
                    <cite>股东本月转账</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="s_totalDistribute"></span>
                    <cite>股东配发总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="s_monthDistribute"></span>
                    <cite>股东本月配发</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_totalBuy"></span>
                    <cite>会员买入总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_monthBuy"></span>
                    <cite>会员本月买入</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_totalSale"></span>
                    <cite>会员卖出总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_monthSale"></span>
                    <cite>会员本月卖出</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_withdrawalCashCount"></span>
                    <cite>会员累计提现金额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_withdrawalCash"></span>
                    <cite>会员可提现金额</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_totalTransfer"></span>
                    <cite>会员转账总数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="m_monthTransfer"></span>
                    <cite>会员本月转账</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalFee"></span>
                    <cite>手续费总额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="monthFee"></span>
                    <cite>本月手续费</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalOrderNum"></span>
                    <cite>商城订单总数</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="monthOrderNum"></span>
                    <cite>商城本月订单数</cite>
                </div>
            </a>
        </div>
    </div>
    <div class="panel_box row">
        <div class="panel col " style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="totalOrderPrice"></span>
                    <cite>商城订单总金额</cite>
                </div>
            </a>
        </div>
        <div class="panel col" style="width: 230px">
            <a href="javascript:" data-url="/admin/system/table/list">
                <div class="panel_icon" style="background-color: #00bb36">
                    <i class="layui-icon" data-icon=""></i>
                </div>
                <div class="panel_word newMessage">
                    <span id="monthOrderPrice"></span>
                    <cite>商城本月订单金额</cite>
                </div>
            </a>
        </div>
    </div>

</div>

</body>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/tools.js"></script>
<script type="text/javascript" src="/static/zTree/v3/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="/static/js/CodeConst.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script>

    function getStatistical() {
        var statistical;
        $.ajax({
            async: false,
            url: '/back/finance/statistical/list',
            type: 'get',
            success: function (baseDto) {
                dealBaseDto(baseDto, function (baseDto) {
                    statistical = baseDto.data;
                })
            },
            complete:function(){
                loadData(statistical)
            }
        });
    }

    getStatistical();

    function loadData(statistical) {
        //累计分红
        var totalDividendsDiv = $("#totalDividends");
        var totalDividendsBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/dividends/listpage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.totalDividends + "</a>";
        totalDividendsDiv.html(totalDividendsBtn);

        //本月分红 monthDividends
        var monthDivdendsDiv = $("#monthDividends");
        monthDivdendsDiv.html(statistical.monthDivdends);

        //股东可提现金额 s_withdrawalCash
        var s_withdrawalCashDiv = $("#s_withdrawalCash");
        s_withdrawalCashDiv.html(statistical.s_withdrawalCash);

        //股东累计提现金额 s_withdrawalCashCount
        var s_withdrawalCashCountDiv = $("#s_withdrawalCashCount");
        var s_withdrawalCashCountBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/withdrawCashPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.s_withdrawalCashCount + "</a>";
        s_withdrawalCashCountDiv.html(s_withdrawalCashCountBtn);

        //股东转账总额 s_totalTransfer
        var s_totalTransferDiv = $("#s_totalTransfer");
        var s_totalTransferBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/s_totalTransferPage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.s_totalTransfer + "</a>";
        s_totalTransferDiv.html(s_totalTransferBtn);

        //股东本月转账 s_monthTransfer
        var s_monthTransferDiv = $("#s_monthTransfer");
        s_monthTransferDiv.html(statistical.s_monthTransfer);

        //配发总额 s_totalDistribute
        var s_totalDistributeDiv = $("#s_totalDistribute");
        var s_totalDistributeBtn = "<a  style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/dividenshistorypage\" type=\"button\"\n" +
            "                                               class=\"layui-btn layui-btn-xs\">" + statistical.s_totalDistribute + "</a>";
        s_totalDistributeDiv.html(s_totalDistributeBtn);

        //本月配发 s_monthDistribute
        var s_monthDistributeDiv = $("#s_monthDistribute");
        s_monthDistributeDiv.html(statistical.s_monthDistribute);

        //会员买入总额 m_totalBuy
        var m_totalBuyDiv = $("#m_totalBuy");
        var m_totalBuyeBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/totalBuyPage\" type=\"button\"\n" +
            "class=\"layui-btn layui-btn-xs\">" + statistical.m_totalBuy + "</a>";
        m_totalBuyDiv.html(m_totalBuyeBtn);

        //会员本月买入 m_monthBuy
        var m_monthBuyDiv = $("#m_monthBuy");
        m_monthBuyDiv.html(statistical.m_monthBuy);

        //会员卖出总额 m_totalSale
        var m_totalSaleDiv = $("#m_totalSale");
        var m_totalSaleBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/totalSalePage\" type=\"button\"\n" +
            "class=\"layui-btn layui-btn-xs\">" + statistical.m_totalSale + "</a>";
        m_totalSaleDiv.html(m_totalSaleBtn);

        //会员本月卖出 m_monthSale
        var m_monthSaleDiv = $("#m_monthSale");
        m_monthSaleDiv.html(statistical.m_monthSale);

        //会员可提现金额 m_withdrawalCash
        var m_withdrawalCashDiv = $("#m_withdrawalCash");
        m_withdrawalCashDiv.html(statistical.m_withdrawalCash);

        //会员累计提现金额 m_withdrawalCashCount
        var m_withdrawalCashCountDiv = $("#m_withdrawalCashCount");
        var m_withdrawalCashCountBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/withdrawCashPage\" type=\"button\" class=\"layui-btn layui-btn-xs\">"+statistical.m_withdrawalCashCount+"</a>"
        m_withdrawalCashCountDiv.html(m_withdrawalCashCountBtn);

        //会员转账总数 m_totalTransfer
        var m_totalTransferDiv = $("#m_totalTransfer");
        var m_totalTransferBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/m_totalTransferPage\" type=\"button\" class=\"layui-btn layui-btn-xs\">"+statistical.m_totalTransfer+"</a>"
        m_totalTransferDiv.html(m_totalTransferBtn);

        //会员本月转账 m_monthTransfer
        var m_monthTransferDiv = $("#m_monthTransfer");
        m_monthTransferDiv.html(statistical.m_monthTransfer);

        //手续费总额 totalFee
        var totalFeeDiv = $("#totalFee");
        var totalFeeBtn = "<a style=\"font-size: 25px ;color: #000000; text-decoration:underline\" href=\"/back/finance/statistical/totalFeePage\" type=\"button\" class=\"layui-btn layui-btn-xs\">"+statistical.totalFee+"</a>"
        totalFeeDiv.html(totalFeeBtn);

        //本月手续费 monthFee
        var monthFeeDiv = $("#monthFee");
        monthFeeDiv.html(statistical.monthFee);
        //订单总数 totalOrderNum
        var totalOrderNumDiv = $("#totalOrderNum");
        totalOrderNumDiv.html(statistical.totalOrderNum);
        //本月订单数 monthOrderNum
        var monthOrderNumDiv = $("#monthOrderNum");
        monthOrderNumDiv.html(statistical.monthOrderNum);
        //订单总金额 totalOrderPrice
        var totalOrderPriceDiv = $("#totalOrderPrice");
        totalOrderPriceDiv.html(statistical.totalOrderPrice);
        //本月订单金额 monthOrderPrice
        var monthOrderPriceDiv = $("#monthOrderPrice");
        monthOrderPriceDiv.html(statistical.monthOrderPrice);
    }



</script>


</html>